import request from '@/utils/request'

import type { responseDataType, listDataType } from './model'
import type { Info } from './info.model'
const baseRequest = request.init(import.meta.env.VITE_APP_BASE_API)

export function infoList(params: PageQuery) {
  return baseRequest.get<any, responseDataType<listDataType<Info>>>('api/auth/info', { params })
}
